﻿@{
    ViewBag.Title = "CurrencyFormat";
    Layout = "~/Views/Shared/_Page.cshtml";
}

<h2>Currency Format</h2>

<script type="text/javascript">
   
    window.onload = function() {
        var cost = 10;
        var printCost = '$' + cost.toFixed(2); // $10.00
        ZEUS.DEBUG.log("cost = " + cost);
        ZEUS.DEBUG.log("cost($) = " + printCost);

        var cost2 = 10.289;
        var printCost2 = '$' + cost2.toFixed(2); // $10.29
        ZEUS.DEBUG.log("cost2 = " + cost2);
        ZEUS.DEBUG.log("cost2($) = " + printCost2);
    }

</script>